/**
 * author: XGP
 * date: 2018/07/25
 * des: 人员招聘-招聘规划
 */
import request from '@/utils/request'

/**
 * 查询招聘信息状态统计
 */
export function getRequire() {
  return request({
    url: '/hr/recruit/plan/total/mock',
    method: 'get'
  })
}

/**
 * 按状态查询详细人员信息
 */
export function getRequireList(data) {
  return request({
    url: '/hr/salary/salaryfixs',
    method: 'get',
    params: data
  })
}
/**
 * 新增需求
 */
export function addRequire(data) {
  return request({
    url: '/hr/salary/salaryfixs',
    method: 'post',
    data
  })
}

/**
 * 删除
 */
export function deleteObj(data) {
  return request({
    url: '/hr/salary/salaryfixs',
    method: 'delete',
    params: data
  })
}


/**
 * 编辑
 */
export function editSubmit(data) {
  return request({
    url: '/hr/salary/salaryfixs/' + data.id,
    method: 'put',
    data: data
  })
}



/**
 * 高级搜索
 */
export function searchRequire(data) {
  // console.log(data);
  return request({
    url: '/hr/recruit/require/searchReq/mock',
    method: 'get',
    data
  })
}
/**
 * 编辑需求
 */
export function editRequire(data) {
  return request({
    url: '/hr/recruit/require/addReq/mock',
    method: 'post',
    data
  })
}
/**
 * 停止招聘
 */
export function stopRequire(data) {
  return request({
    url: '/hr/recruit/require/stopReq/mock',
    method: 'post',
    data
  })
}
